﻿    @model Quester.Models.TestOpenVModel

@{
    ViewBag.Title = "OpenTest";
}

<h2>Відкрити тест</h2>
@using(Html.BeginForm())
{    
    @Html.ValidationSummary(true)
    @Html.HiddenFor(m => m.TestID)
<p>@ViewBag.TestName - @ViewBag.TotalQuestions</p>
<table class="editForm" >
    <tbody>
        <tr class="tableOdd">
            <th style="font-size:1.3em; text-align:left;">Група</th>
            <td>@Html.DropDownListFor(m => m.GoupID, new SelectList(ViewBag.GroupList, "Value", "Text", Model.GoupID.ToString()), new { style = "font-size:1.5em;" })
            </td>
        </tr>
        <tr class="tableEven">
            <th style="font-size:1.3em; text-align:left;">Відкрити з: </th>
            <td>@Html.EditorFor(m => m.OpenAt)
            </td>
        </tr>
        <tr class="tableOdd">
            <th style="font-size:1.3em; text-align:left;">Закрити після: </th>
            <td>@Html.EditorFor(m => m.ClodeAt)
            </td>
        </tr>
        <tr class="tableEven">
            <th style="font-size:1.3em; text-align:left;">Запитань на 1 варіант: </th>
            <td>@Html.TextBoxFor(m => m.QuestionQuant, new { @style = "width:64px" })
            </td>
        </tr>
        <tr class="tableOdd">
            <th><input type="submit" value="Відкрити" class="ActButton"/>
            </th>
            <td class="ActButton">@Html.ActionLink("Відміна", "TestList")
            </td>
        </tr>
    </tbody>
</table>
}